package com.loong.nnm.entity.pg;

public class PG {

    private enum SwitchReason {
        NO_SWITCH,
        SF_SWITCH,
        SD_SWITCH,
        MANUAL_SWITCH,
        FORCE_SWITCH,
        CLEARED,
        WAIT_TO_RESTORE,
        LOCKOUT
    }

    private int pgId;
    private String protectionType;
    private String reversionMode;
    private String switchType;
    private SwitchReason switchReason;
    private String protectionDirection;
    private int waitToRestoreTime;
    private String primaryPort;
    private String secondaryPort;
    private String selectedPort;
    private int holdOffTime;

    @Override
    public String toString() {
        return "PG{" +
                "pgId=" + pgId +
                ", protectionType='" + protectionType + '\'' +
                ", reversionMode='" + reversionMode + '\'' +
                ", switchType='" + switchType + '\'' +
                ", switchReason=" + switchReason +
                ", protectionDirection='" + protectionDirection + '\'' +
                ", waitToRestoreTime=" + waitToRestoreTime +
                ", primaryPort='" + primaryPort + '\'' +
                ", secondaryPort='" + secondaryPort + '\'' +
                ", selectedPort='" + selectedPort + '\'' +
                ", holdOffTime=" + holdOffTime +
                '}';
    }

    public int getPgId() {
        return pgId;
    }

    public void setPgId(int pgId) {
        this.pgId = pgId;
    }

    public String getProtectionType() {
        return protectionType;
    }

    public void setProtectionType(String protectionType) {
        this.protectionType = protectionType;
    }

    public String getReversionMode() {
        return reversionMode;
    }

    public void setReversionMode(String reversionMode) {
        this.reversionMode = reversionMode;
    }

    public String getSwitchType() {
        return switchType;
    }

    public void setSwitchType(String switchType) {
        this.switchType = switchType;
    }

    public SwitchReason getSwitchReason() {
        return switchReason;
    }

    public void setSwitchReason(SwitchReason switchReason) {
        this.switchReason = switchReason;
    }

    public String getProtectionDirection() {
        return protectionDirection;
    }

    public void setProtectionDirection(String protectionDirection) {
        this.protectionDirection = protectionDirection;
    }

    public int getWaitToRestoreTime() {
        return waitToRestoreTime;
    }

    public void setWaitToRestoreTime(int waitToRestoreTime) {
        this.waitToRestoreTime = waitToRestoreTime;
    }

    public String getPrimaryPort() {
        return primaryPort;
    }

    public void setPrimaryPort(String primaryPort) {
        this.primaryPort = primaryPort;
    }

    public String getSecondaryPort() {
        return secondaryPort;
    }

    public void setSecondaryPort(String secondaryPort) {
        this.secondaryPort = secondaryPort;
    }

    public String getSelectedPort() {
        return selectedPort;
    }

    public void setSelectedPort(String selectedPort) {
        this.selectedPort = selectedPort;
    }

    public int getHoldOffTime() {
        return holdOffTime;
    }

    public void setHoldOffTime(int holdOffTime) {
        this.holdOffTime = holdOffTime;
    }
}
